<template>
	<view v-if="state.car_lease !== '2'" @click="lease">
		<image :src="app_url + '/image/phonezu.png'" class="phonezu"></image>
	</view>
</template>

<script>
	import config from "@/config.js";
	export default {
		name: "InterestFree",
		props: {

		},
		data() {
			return {
				state: {
					car_lease: "",
				},
				app_url: config.app_url,
			}
		},
		methods: {
			/*获取配置信息*/
			setCarLease() {
				const self = this;
				self._get("setting.setting/cyphone", {}, ({
					data
				}) => (self.state.car_lease = data.cyphone.car_lease));
			},
			// 跳转以租代购
			lease() {
				uni.navigateTo({
					url: "/pages/order/lease",
				});
			},
		},
		created() {}
	}
</script>

<style lang="scss" scoped>
	.phonezu {
		border-radius: 16rpx;
		width: 100%;
		height: 290rpx;
	}
</style>